import React, { useState } from 'react'
import Header from "@/components/Header"
import List from "@/components/List"
import style from "./App.module.css"
export default function App() {
  //数据1:保存搜索列表数据
  const [userList,setUserList] = useState([])

  //数据2:保存当前是否已经搜索
  const [isSearch,setIsSearch]=useState(false)
  
  //数据3:保存当前是否正在搜索中
  const [isSearching,setIsSearching] =useState(false)
  return (
    <div className={style.outer}>
      <Header setUserList={setUserList} setIsSearch={setIsSearch} setIsSearching={setIsSearching}/>
      <List userList={userList} isSearch={isSearch} isSearching={isSearching}/>
    </div>
  )
}















